package com.aishua.fire.jpa;

import java.util.List;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import com.aishua.fire.jpa.entity.Permteam;

public interface PermteamDao extends JpaRepository<Permteam, Long>,JpaSpecificationExecutor<Permteam>{

	    /*@Override
	    Page<Permteam> findAll(Specification<Permteam> spec, Pageable pageable);*/
	
	@Query(value="select * from permteam where status = 0",nativeQuery = true)
	List<Permteam> searchList();
	//查询id,name集合
	/*@Query(value="select permteamId,permTeamName from Permteam where status=0")
	List<Permteam> findIdAndPermTeamName();*/
	
}
